import request from '@/utils/request'

// 查询首页轮播图列表
export function listPmsIndexBanner(query, pageReq) {
  return request({
    url: '/indexBanner/pmsIndexBanner/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询首页轮播图详细
export function getPmsIndexBanner(id) {
  return request({
    url: '/indexBanner/pmsIndexBanner/' + id,
    method: 'get'
  })
}

// 新增首页轮播图
export function addPmsIndexBanner(data) {
  return request({
    url: '/indexBanner/pmsIndexBanner',
    method: 'post',
    data: data
  })
}

// 修改首页轮播图
export function updatePmsIndexBanner(data) {
  return request({
    url: '/indexBanner/pmsIndexBanner',
    method: 'put',
    data: data
  })
}

// 删除首页轮播图
export function delPmsIndexBanner(id) {
  return request({
    url: '/indexBanner/pmsIndexBanner/' + id,
    method: 'delete'
  })
}

// 导出首页轮播图
export function exportPmsIndexBanner(query) {
  return request({
    url: '/indexBanner/pmsIndexBanner/export',
    method: 'get',
    params: query
  })
}
